<template>
  <el-container class="subAccount">
    <el-header>
      <div class="establish">＋创建子账户</div>
    </el-header>
    <el-footer>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="sonName" label="子用户名称"></el-table-column>
        <el-table-column prop="password" label="密码"></el-table-column>
        <el-table-column prop="time" label="时间"></el-table-column>
        <el-table-column prop="jurisdiction" label="权限"></el-table-column>
        <el-table-column prop="remark" label="备注"></el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
            <el-button type="text" size="small">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-row>ffff</el-row>
    </el-footer>
  </el-container>
</template>
<script>
export default {
  data() {
    return {
      tableData: [{
        sonName: 'zhoutong@example.com',
        password: 'xxxxx',
        time: '2021-4-2',
        jurisdiction: '代缴费丶车辆进出场',
        remark: '',
      }
      ]
    }
  },
  methods: {
    handleClick(row) {
      console.log(row);
      // 编辑
    }
  }
}
</script>
<style lang="less" scoped>
.subAccount {
  margin-top: 40px;
  .establish {
    width: 118px;
    height: 40px;
    background-color: rgb(24, 144, 255);
    cursor: pointer;
    color: #fff;
    text-align: center;
    line-height: 40px;
  }
  .has-gutter {
    .cell {
      color: #000;
    }
  }
}
</style>